﻿//-----------------------------------------------------------------------
// <copyright file="WizardStartForm.cs" company="Microsoft Corporation">
//     Copyright (c) Microsoft Corporation 2011. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Internal.TeamFoundationServer.Submit
{
    using System.Windows.Forms;

    /// <summary>
    /// StartWizard class.
    /// </summary>
    internal partial class WizardStartForm : WizardFormTemplate
    {
        /// <summary>
        /// WizardMainMenuControl object.
        /// </summary>
        private readonly WizardMainMenuControl wizardMainMenuControl;

        /// <summary>
        /// Initializes a new instance of the <see cref="WizardStartForm"/> class.
        /// </summary>
        public WizardStartForm()
        {
            try
            {
                Cursor.Current = Cursors.WaitCursor;

                this.InitializeComponent();

                // Add initial control.
                this.wizardMainMenuControl = new WizardMainMenuControl();
                this.OpenControl(this.wizardMainMenuControl);
            }
            finally
            {
                Cursor.Current = Cursors.Default;
            }
        }
    }
}
